package com.yifang.yibingproject.query;

import com.yifang.yibingproject.utils.PageQuery;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@Data
@ApiModel("日志分页查询DTO")
public class LogPageQuery extends PageQuery {

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("操作用户")
    private String username;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("方法名")
    private String method;

    @ApiModelProperty("参数")
    private String params;

    @ApiModelProperty("请求ip")
    private String requestIp;

    @ApiModelProperty("请求方法")
    private String requestMethod;

    @ApiModelProperty("请求URL")
    private String requestUrl;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("请求耗时")
    private Integer time;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("指定年月")
    private LocalDate yearMonth;

}
